package com.prs.crm.domain.personalset;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * 
 * @author Yanghao
 *	2012-7-26 15:00:37 市
 */
@Entity@Table(name="ps_defaultcity")
public class DefaultCity extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	
	private String name;
	
	@ManyToOne
	private DefaultProvince defaultProvince;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public DefaultProvince getDefaultProvince() {
		return defaultProvince;
	}

	public void setDefaultProvince(DefaultProvince defaultProvince) {
		this.defaultProvince = defaultProvince;
	}
}
